package com.JavaWk2_6;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        Student s1, s2;
        s1 = new Student("1001","Jhon","male",20);
        s2 = new Student("1002","Rose","female",19);

        System.out.println(s1.to_String());
        System.out.println(s2.to_String());

        s1.modifyAge(21);
        System.out.println("修改后s1年龄：" + s1.showAge());
    }
}
